<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="/static/js/common/jquery-1.11.1.min.js"></script>
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta name="Keywords" content="花言APP,花言软件,花言应用，深圳花言" />
    <meta name="Description" content="高颜值一对一私密视频聊天" />

    <title>附近视频交友</title>
</head>
<body>
<script src="/static/js/Monitor.js"></script>
<script>
    $(function () {
        var shareId=getParameter("shareId");
        var ua = navigator.userAgent;
        if (ua.indexOf("Android") > -1) {
            jumpToAndroid(shareId);
        } else if (ua.indexOf("iPhone") > -1 || ua.indexOf("iPad") > -1 || ua.indexOf("iPod") > -1) {
            if(shareId){
                window.location="/iosStep/index.html?shareId="+shareId;
            }else{
                window.location="../iosStep/index.html";
            }
        } else {
            // 由于出现部分Android机型误判. 所以不是苹果的暂时全部走安卓.
            jumpToAndroid(shareId);
        }
    });

    // shareId验证合法性; 区分PC
    function jumpToAndroid(shareId) {
        if(shareId){
            window.location="/share/index.html?shareId="+shareId;
        }else{
            window.location="../index.html";
        }
    }
    function getParameter (name) {
        var str = window.location.search;
        var index = str.indexOf("?" + name + "=");
        if (index == -1) {
            index = str.indexOf("&" + name + "=");
        }
        if (index == -1) {
            return null;
        }
        var end = str.indexOf("&", index + 1);
        if (end == -1) {
            return str.substring(index + 2 + name.length);
        } else {
            return str.substring(index + 2 + name.length, end);
        }
    };
</script>
</body>
</html>